package io.renren.modules.demo.algorithm;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Warehouse
{
    private int serialNumber;  //仓库编号，从1开始

    private int demand;  //物资需求量，单位为吨

    private int locationX;  //x坐标，以配送中心为参考系，单位为千米

    private int locationY;  //y坐标

    public int getDemand()
    {
        return demand;
    }

    public int getSerialNumber()
    {
        return serialNumber;
    }

    public void setSerialNumber(int serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public void setDemand(int demand)
    {
        this.demand = demand;
    }

    public int getLocationX()
    {
        return locationX;
    }

    public void setLocationX(int location_x)
    {
        this.locationX = location_x;
    }

    public int getLocationY()
    {
        return locationY;
    }

    public void setLocationY(int location_y)
    {
        this.locationY = location_y;
    }


    @Override
    public String toString() {
        return "Warehouse{" +
                "serialNumber=" + serialNumber +
                ", demand=" + demand +
                ", locationX=" + locationX +
                ", locationY=" + locationY +
                '}';
    }
}
